* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #282828;
  }

  .container {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background: url('https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/e04f51b7594345a6b4df6c41ff577e55~tplv-k3u1fbpfcp-watermark.image');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }

  .clock {
    position: absolute;
    top: 20px;
    display: flex;
    width: 400px;
    height: 400px;
    justify-content: center;
    align-items: center;
    background-image: url("https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/c3e64c836aeb4be89df3d41d63b78751~tplv-k3u1fbpfcp-watermark.image");
    /* background-image: url("https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/865594fcd3754ea594bc0565386f8ad3~tplv-k3u1fbpfcp-watermark.image"); */
    background-size: cover;
    background-repeat: no-repeat;
    border: 4px solid #191919;
    border-radius: 50%;
    box-shadow: -4px -4px 10px rgba(67, 67, 67, .5),
      inset 4px 4px 10px rgba(0, 0, 0, .5),
      inset -4px -4px 10px rgba(67, 67, 67, .3);
  }

  .clock::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 18px;
    background: #b2807f;
    border-radius: 20%;
    z-index: 999;
  }

  .clock .hours,
  .clock .minutes,
  .clock .seconds {
    position: absolute;
  }

  .clock .hours,
  .hour {
    width: 220px;
    height: 220px;
  }

  .clock .minutes,
  .minute {
    width: 260px;
    height: 260px;
  }

  .clock .seconds,
  .second {
    width: 300px;
    height: 300px;
  }

  .hour,
  .minute,
  .second {
    display: flex;
    justify-content: center;
    position: absolute;
    border-radius: 50%;
  }

  .hour::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 110px;
    background: #fff;
    border-radius: 6px 6px 0 0;
    z-index: 9;
  }

  .minute::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 130px;
    background: #fff;
    border-radius: 6px 6px 0 0;
    z-index: 10;
  }

  .second::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 150px;
    background: #fff;
    border-radius: 6px 6px 0 0;
    z-index: 11;
  }


  /* 刻度盘 */
  .line-hour li,
  .line-min li {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: left center;
    background-color: #FFF;
    list-style: none;
  }

  .line-hour li {
    width: 16px;
    height: 2px;
  }

  .line-min li {
    width: 5px;
    height: 2px;
  }

      /* 篮球 */
  #ballWrapper {
    width: 300px;
    height: 100px;
    display: block;
    position: absolute;
    cursor: pointer;
    right: -240px;
    top: 150px;
    /* visibility: hidden; */
  }

  #ball {
    width: 70px;
    height: 70px;
    position: relative;
    animation: jump 1s infinite;
    overflow: hidden;
  }

  #ball:after {
    content: "";
    width: 70px;
    height: 70px;
    border-radius: 100%;
    background-image: url("");
    position: absolute;
    animation: rotate 2s infinite, back 1s infinite;
    z-index: 5;
    background-repeat: repeat;
    background-size: cover;
    animation-timing-function: linear;
  }


  @keyframes jump {
    0% {
      right: 0px;
      transform: scale3d(1.3, .8, 1);

      border-radius: 100%;
      animation-timing-function: ease-out;
    }
    5% {
      transform: scale3d(1, 1, 1);
    }

    45% {
      transform: scale3d(1, 1, 1);
    }

    50% {
      right: -300px;
      animation-timing-function: ease-in;
      transform: scale3d(1, 1, 1);
    }
    
    60% {
      transform: scale3d(.8, 1.1, 1);
    }

    70% {
      transform: scale3d(.95, 1.05, 1);
    }

    72% {
      transform: scale3d(1, 1, 1);
    }

    100% {
      transform: scale3d(1, 1, 1);
      right: 0px;
      border-radius: 100%;
    }
  }

  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

   /* mode */
   .mode {
    position: absolute;
    left: 0;
    top: 0;
    width: 600px;
    height: 80px;
  }

  #btnWrapper {
    z-index: 1000;
    position: relative;
    width: 400px;
    height: 80px;
    padding: 12px 16px;
    margin: 40px 0 0 40px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #556d8b76;
    box-shadow: -8px -8px 12px #ffffffb6, 8px 8px 12px #ffffffb6;
    transition: transform 0.4s cubic-bezier(0, 0, 0.48, 1), box-shadow 0.4s linear, background-color 0.4s linear;
  }

  #btnWrapper::before {
    content: "";
    position: absolute;
    left: var(--groove-left);
    top: 12px;
    width: calc(33.3% - 16px - 8px);
    height: calc(100% - 24px);
    border-radius: 12px;
    box-shadow: inset 8px 8px 6px #ffffffb6, inset -5px -5px 15px #ffffffb6, inset -5px -5px 15px #ffffffb6, inset 7px 7px 6px #d9dbe6;
    transition: left 1s cubic-bezier(0.82, 0.12, 0.18, 0.88), box-shadow 0.4s linear;
  }

  .btn {
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33.3%;
    height: 100%;
    padding: inherit;
    color: rgb(210, 208, 208);
    transition: color 0.4s linear;
    animation: txtOutScale 0.6s linear;
    cursor: pointer;
  }

  .active {
    color: #fff;
    transform: scale(1.1);
    animation: txtEnterScale 0.4s linear;
  }

  @keyframes txtEnterScale {
    0% {
      transform: scale(1);
    }

    80% {
      transform: scale(1.15);
    }

    100% {
      transform: scale(1.1);
    }
  }

  @keyframes txtOutScale {
    0% {
      transform: scale(1.1);
    }

    80% {
      transform: scale(0.95);
    }

    100% {
      transform: scale(1);
    }
  }